<div class="bgtopic">
    <div class="topic_title"> Quảng cáo</div>
</div>
<div class="quangcao a img">
    <?php 
    $panel = Panel::model()->findAll(
            array(
                'condition' => ' `flag`=1 and `type`=3 and `dateCreate`<= CURDATE() and `dateEpend`>=CURDATE()',
                'order'     => ' vitri ASC',
                'limit'     => 10,
            )
    );
    if(!empty($panel)){
        foreach ($panel as $p){
    
    ?>
    <a href="<?php echo $p->url;?>" target="_blank">
        <img src="<?php echo Yii::app()->request->baseUrl.'/upload/quangcao/'.$p->photo; ?>" width="176">
    </a>
    <?php 
        }
    }?>
</div>
